package com.chk.article.clients;

import com.chk.article.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-service")
public interface UserClient {
    @GetMapping("/user/{userId}")
    User getUserById(@PathVariable(value = "userId")Integer userId);

}
